﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Bookkeeping.Core.Entities;

namespace Bookkeeping.Mvc.Models.Budget
{
    public class ListViewModel
    {
        public MonthNavigationViewModel MonthNavigation { get; set; }
        public PostListViewModel Expenses { get; set; }
        public PostListViewModel Incomes { get; set; }
        public PostListViewModel Savings { get; set; }
        public TotalViewModel Total { get; set; }
        public int Year { get; set; }
        public int Month { get; set; }

        public void SelectPostById(int id)
        {
            Expenses.SelectPostById(id);
            Incomes.SelectPostById(id);
            Savings.SelectPostById(id);
        }
    }
}
